package com.hnepri.fang.ftx.fetch;

public class Test {
    public static void main(String[] args) {
        String url = "http://shengshigangwanjz.fang.com/esf/";
        char lastChar = url.charAt(url.length() - 1);
        if (lastChar != '/') {
            url = url + "/";
        }
        String esf = url.substring(url.length() - 5);
        if (esf.equals("/esf/")) {
            url = url.substring(0, url.length() - 4);
        }
        System.out.println(url);
    }
}
